Public Class CustomControlForm
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents ClockPropertyGrid As System.Windows.Forms.PropertyGrid
    Friend WithEvents clock1 As GeoFramework.Examples.Clock
    Friend WithEvents splitter1 As System.Windows.Forms.Splitter
    Friend WithEvents ClockTimer As System.Windows.Forms.Timer
    Friend WithEvents label1 As System.Windows.Forms.Label
    Friend WithEvents label2 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Me.ClockPropertyGrid = New System.Windows.Forms.PropertyGrid
        Me.clock1 = New GeoFramework.Examples.Clock
        Me.splitter1 = New System.Windows.Forms.Splitter
        Me.ClockTimer = New System.Windows.Forms.Timer(Me.components)
        Me.label1 = New System.Windows.Forms.Label
        Me.label2 = New System.Windows.Forms.Label
        CType(Me.clock1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'ClockPropertyGrid
        '
        Me.ClockPropertyGrid.CommandsBackColor = System.Drawing.Color.White
        Me.ClockPropertyGrid.CommandsVisibleIfAvailable = True
        Me.ClockPropertyGrid.Dock = System.Windows.Forms.DockStyle.Right
        Me.ClockPropertyGrid.LargeButtons = False
        Me.ClockPropertyGrid.LineColor = System.Drawing.SystemColors.ScrollBar
        Me.ClockPropertyGrid.Location = New System.Drawing.Point(248, 0)
        Me.ClockPropertyGrid.Name = "ClockPropertyGrid"
        Me.ClockPropertyGrid.PropertySort = System.Windows.Forms.PropertySort.Alphabetical
        Me.ClockPropertyGrid.SelectedObject = Me.clock1
        Me.ClockPropertyGrid.Size = New System.Drawing.Size(266, 521)
        Me.ClockPropertyGrid.TabIndex = 18
        Me.ClockPropertyGrid.Text = "propertyGrid1"
        Me.ClockPropertyGrid.ViewBackColor = System.Drawing.SystemColors.Window
        Me.ClockPropertyGrid.ViewForeColor = System.Drawing.SystemColors.WindowText
        '
        'clock1
        '
        Me.clock1.ClockTime = New Date(2005, 6, 24, 11, 39, 39, 274)
        Me.clock1.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality
        Me.clock1.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
        Me.clock1.Location = New System.Drawing.Point(18, 21)
        Me.clock1.Name = "clock1"
        Me.clock1.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality
        Me.clock1.Size = New System.Drawing.Size(200, 200)
        Me.clock1.TabIndex = 17
        '
        'splitter1
        '
        Me.splitter1.Dock = System.Windows.Forms.DockStyle.Right
        Me.splitter1.Location = New System.Drawing.Point(242, 0)
        Me.splitter1.Name = "splitter1"
        Me.splitter1.Size = New System.Drawing.Size(6, 521)
        Me.splitter1.TabIndex = 21
        Me.splitter1.TabStop = False
        '
        'ClockTimer
        '
        Me.ClockTimer.Enabled = True
        '
        'label1
        '
        Me.label1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.label1.Location = New System.Drawing.Point(3, 237)
        Me.label1.Name = "label1"
        Me.label1.Size = New System.Drawing.Size(231, 57)
        Me.label1.TabIndex = 19
        Me.label1.Text = "It's surprisingly easy to create your own controls with GPS.NET!   The source cod" & _
        "e for this Clock control is included in the same directory as this example."
        '
        'label2
        '
        Me.label2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.label2.Location = New System.Drawing.Point(3, 300)
        Me.label2.Name = "label2"
        Me.label2.Size = New System.Drawing.Size(231, 69)
        Me.label2.TabIndex = 20
        Me.label2.Text = "Custom controls automatically take advantage of double-buffering, multithreading," & _
        " glass effects, and all of the features available in other GPS.NET controls."
        '
        'CustomControlForm
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(514, 521)
        Me.Controls.Add(Me.clock1)
        Me.Controls.Add(Me.splitter1)
        Me.Controls.Add(Me.label1)
        Me.Controls.Add(Me.label2)
        Me.Controls.Add(Me.ClockPropertyGrid)
        Me.Name = "CustomControlForm"
        Me.Text = "Custom Controls"
        CType(Me.clock1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub ClockTimer_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles ClockTimer.Tick
        ' Set the Clock control to the current time
        clock1.ClockTime = DateTime.Now
    End Sub
End Class
